import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../components/HomeView.vue'
import PhysicianReview from "@/views/PhysicianReview.vue";
import PlantHome from "@/views/PlantHome.vue";
import Classify from "@/views/Classify.vue";
import Agent from "@/views/Agent.vue";
import Addproduct from "@/views/Addproduct.vue";
import EncounterRecord from "@/views/EncounterRecord.vue";
import RecordDetail from "@/views/RecordDetail.vue";
import MyUser from "@/views/MyUser.vue";
import College from "@/views/College.vue";
import MyOrder from "@/views/MyOrder.vue";
import CollegeDetail from "@/views/CollegeDetail.vue"
import Send from "@/views/Send.vue"


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: HomeView,
    children:[
      {
        path: '/',
        name: 'PlantHome',
        component:PlantHome
      },
      {
        path: '/PhysicianReview',
        name: 'PhysicianReview',
        component:PhysicianReview
      },
      {
        path: '/Classify',
        name: 'Classify',
        component:Classify
      },
      {
        path: '/Agent',
        name: 'Agent',
        component:Agent
      },
      {
        path: '/Addproduct',
        name: 'Addproduct',
        component:Addproduct
      },
      {
        path: '/MyUser',
        name: 'MyUser',
        component:MyUser
      },

      {
        path: '/EncounterRecord',
        name: 'EncounterRecord',
        component:EncounterRecord
      },
      {
        path: '/RecordDetail',
        name: 'RecordDetail',
        component:RecordDetail
      },
      {
        path: '/College',
        name: 'College',
        component:College
      },
      {
        path: '/MyOrder',
        name: 'MyOrder',
        component:MyOrder
      },
      {
        path: '/CollegeDetail',
        name: 'CollegeDetail',
        component:CollegeDetail
      },
      {
        path: '/Send',
        name: 'Send',
        component:Send
      },
    ]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
